﻿CREATE TABLE [dbo].[Curriculo] (
    [Id]                    INT            IDENTITY (1, 1) NOT NULL,
    [IdProfissional]        INT            NOT NULL,
    [Objetivo]              VARCHAR (100)  NOT NULL,
    [ArquivoDOC]            VARCHAR (30)   NULL,
    [DataCadastro]          DATETIME       NOT NULL,
    [DataUltimaAtualizacao] DATETIME       DEFAULT (getdate()) NOT NULL,
    [Ativo]                 BIT            DEFAULT ('1') NOT NULL,
    [IdNivelProfissional]   INT            NOT NULL,
    [CartaApresentacao]     VARCHAR (1024) NULL,
    PRIMARY KEY CLUSTERED ([Id] ASC) WITH (ALLOW_PAGE_LOCKS = ON, ALLOW_ROW_LOCKS = ON, PAD_INDEX = OFF, IGNORE_DUP_KEY = OFF, STATISTICS_NORECOMPUTE = OFF),
    FOREIGN KEY ([IdProfissional]) REFERENCES [dbo].[Profissional] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION,
    FOREIGN KEY ([IdNivelProfissional]) REFERENCES [dbo].[NivelProfissional] ([Id]) ON DELETE NO ACTION ON UPDATE NO ACTION
);







